<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<s:form id="form" method="post"
	action="#" theme="simple" cssClass="yform">
	<fieldset style="width: 95%;"><legend style="">Tìm kiếm</legend>
	<div class="type-text">
	<ul class="form">
		<li class="left">Từ ngày:</li>
		<li class="right"><sj:datepicker value="today" id="date1" name="date1"
				displayFormat="dd/mm/yy"  /></li>
		<li class="clr"></li>
		<li class="left">Ðến ngày:</li>
		<li class="right"><sj:datepicker value="today" id="date2" name="date2"
				displayFormat="dd/mm/yy"  /></li>
		<li class="clr"></li>
		<li class="left">Trạng thái:</li>
		<li class="right"><s:select label="Tr?ng thái" list="lstStatusOfAccounts"
			listKey="statusOfAccountID" listValue="statusName"></s:select></li>
		<li class="clr"></li>		
		<li class="left">&nbsp;</li>
		<li class="right"><s:url id="TimKiem" value="/TimKiem" /> 
							<sj:submit title="Tìm kiếm" id="subTimKiem" href="%{TimKiem}"
										button="true" value="Tìm kiếm" targets="container">
							</sj:submit>							
		</li>
		<li class="clr"></li>
	</ul>

	</div>

	</fieldset>
</s:form>



<br />
Danh sách các dealer
<br />

<table width="95%" style="margin-left: 10px;" cellpadding="0"
	cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
	<thead>
		<tr>
			<th width="10%" scope="col">STT</th>
			<th width="23%" scope="col">Tên đăng nhập</th>
			<th width="23%" scope="col">Tên công ty</th>
			<th width="23%" scope="col">Ngày đăng kí</th>
			<th scope="col">Tình trạng</th>
		</tr>
	</thead>
	<tbody>
<%int i=0; %>
		<s:iterator value="lstDealer">

			<tr>
				<td>
				<% i++; out.print(i); %>	
				</td>
				<!--<td><s:property value="account.userName" /></td>
			<td><s:property value="companyName" /></td>			
			-->

				<td><s:url id="Dealer_viewChiTiet"
     value="/Dealer_viewChiTiet?id=%{dealerID}" /> <sj:a
     title="Thong tin ca nhan" 
     href="%{Dealer_viewChiTiet}" targets="container">
     <s:property value="account.userName" />
    </sj:a></td>
				<td><s:property value="companyName" /></td>
				<td><s:property value="account.creationDate" /></td>
				<td><s:property value="account.statusOfAccount.statusName" /></td>
		</s:iterator>


		<tr class="footer">
			<td colspan="2">&nbsp;</td>
			<td align="right">&nbsp;</td>
			<td colspan="3" align="right"><!--  PAGINATION START  -->
			<div class="pagination"><span class="previous-off">&laquo;
			Previous</span> <span class="active">1</span> <a href="#">2</a> <a href="#">3</a>
			<a href="#">4</a> <a href="#">5</a> <a href="#" class="next">Next
			&raquo;</a></div>
			<!--  PAGINATION END  --></td>
		</tr>
	</tbody>
</table>


